﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo518_2
{
    class Student : Person
    {

         public string Major { get; set; }
         public string Grade { get; set; }

        public Student(string id, string name, char sex, string cardid,string tel,string  major,string grade) : base(id, name, sex, cardid, tel)
        {
            Major = major;
            Grade = grade;
        }

        public void Show() {
            base.Show();
            Console.WriteLine("专业{0},年级{1},", Major, Grade);
        }
    }
}
